import { createRouter, createWebHistory,RouteRecordRaw } from "vue-router";
const routes:Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'layouts',
        redirect: '/resume',
        component: ()=> import('../views/layouts/index.vue'),
        children: [                       
            {                
                path: '/resume',
                name: 'resume',
                component: ()=> import('../views/resume/index.vue'),
                meta: {
                    title: '个人简历',
                    iconCom: 'Message'
                }
            },
            {                
                path: '/learnsource',
                name: 'learnSource',
                component: ()=> import('../views/learnSource/index.vue'),
                meta: {
                    title: '学习资源',
                    iconCom: 'Collection'
                }
            },
            {                
                path: '/photoCollection',
                name: 'photoCollection',
                component: ()=> import('../views/photoCollection/index.vue'),
                meta: {
                    title: '照片合集',
                    iconCom: 'Discount'
                }
            },
            {                
                path: '/colortheme',
                name: 'colortheme',
                component: ()=> import('../views/colortheme/index.vue'),
                meta: {
                    title: '随机颜色',
                    iconCom: 'Discount'
                }
            }
        ]
    }
]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router
